﻿using Bricks.Business.Models.SafetyManagement;
using Bricks.Component.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bricks.Business.Service
{
    /// <summary>
    /// 安全管理-安全整改
    /// </summary>
    public interface ISavetyCorrectiveService
    {
        IQueryable<SavetyCorrective> SavetyCorrectives { get; }

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        OperationResult Add(SavetyCorrective model);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        OperationResult Modify(SavetyCorrective model);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        OperationResult Delete(Guid id);
    }
}
